package org.jeecg.modules.manage.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import org.apache.ibatis.annotations.Param;
import org.jeecg.modules.manage.entity.CaishuiPreItems;

import java.util.List;
import java.util.Map;

/**
 * @Description: 预充值项目
 * @Author: yfkj
 * @Date:   2023-03-12
 * @Version: V1.0
 */
@InterceptorIgnore(tenantLine = "true")
public interface MCaishuiPreItemsMapper extends BaseMapper<CaishuiPreItems> {

    /**
     * 外键关联分页查询
     * @param page
     * @param queryWrapper
     * @return
     */
    public IPage<CaishuiPreItems> pageMultiTable(IPage<CaishuiPreItems> page, @Param(Constants.WRAPPER) QueryWrapper<CaishuiPreItems> queryWrapper);

    /**
     * 预充值分组统计
     * @return
     */
    public List<Map<String,Object>> queryGroupStatistics();

}
